<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>登录页面</title>
		<link rel="stylesheet" type="text/css" href="css/main.css" />
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<div class="login_warp">
				<div class="loginbox fl">

					<div class="login_header">
						<span @click="cur=0" :class="{active:cur==0}">用户登录</span>
					</div>

					<div class="login_content">
						<div v-show="cur==0" class="Cbody_item">
							<div class="form_item">
								<input type="text" name="fname" placeholder="用户名" v-model="userName">
							</div>
							<div class="form_item">
								<input type="password" name="fpassword" placeholder="密码" v-model="password">
							</div>

							<div class="form_item">
								<div class="fl"><input type="checkbox">记住密码</div>
								<div class="fr"><a href="javascript:;">找回密码</a></div>
							</div>

							<div class="clear"></div>

							<div class="form_item">
								<input type="submit"  @click="login" name="" value="登录">
							</div>

						</div>


					</div>
				</div>
				<div class="loginrslider fl"></div>
			</div>
		</div>
	</body>

	<script type="text/javascript" src="js/html5shiv.min.js"></script>
	
	<script type="text/javascript">
		var app = new Vue({
			el: "#app",
			data: {
				cur: 0 //默认选中第一个tab
			}
		});
	</script>
</html>
